import request from '@/utils/request'

export default {
  page(page,limit) {
    return request({
      url: `/admin/getValuationByPage/${page}/${limit}`,
      method: 'post'
    })
  },
  find(id) {
    return request({
      url: `/admin/find/${id}`,
      method: 'get'
    })
  },
  save(transaction) {
    return request({
      url: `/admin/saveTransaction`,
      method: 'post',
      data: transaction
    })
  },
  searchByCode(debentureCode) {
    return request({
      url: `/admin/getByDecode/${debentureCode}`,
      method: 'get'
    })
  },
}
